﻿@using CleanArchitecture.Infrastructure.Models.SystemManage
@model List<SystemDataDicButtonModel>
<!-- Layui templates -->
    <script type="text/html" id="tableitemBars">
        @foreach (var button in Model)
        {
            <button class="@button.ButtonClass" lay-event="@button.EventName" type="button" data-buttonid="@button.Id">
                @if (string.IsNullOrEmpty(button.IconCssClass))
                {
                    <i class="layui-icon">&#xe608;</i>
                }
                else
                {
                    <i class="@button.IconCssClass"></i>
                }
                @button.DisplayName
            </button>
        }
    </script>